﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Employee.ascx.cs" Inherits="ERP.Modules.Employee" %>
<%-------------------------------%>
<ext:Hidden ID="FormatTypeEmployee" runat="server" />
<ext:Panel runat="server" Layout="Fit" Border="False" ID="PanelEmployee">
    <Content>
        <%--------------GridEmployee-----------------%>
        <ext:GridPanel
            ID="grEmployee"
            Cls="grid-double"
            runat="server"
            EnableColumnMove="true"
            Border="False">
            <%-------------StoreEmployee-----------------%>
            <Store>
                <ext:Store
                    ID="StoreEmployee"
                    runat="server"
                    OnReadData="StoreEmployee_RefreshData"
                    PageSize="20">
                    <Model>
                        <ext:Model ID="ModelEmployee" runat="server" IDProperty="Employee_Id">
                            <Fields>
                                <ext:ModelField Name="Bank_Code" Type="String" />
                                <ext:ModelField Name="FistName" Type="String" />
                                <ext:ModelField Name="LastName" Type="String" />
                                <ext:ModelField Name="FullName" Type="String" />
                                <ext:ModelField Name="Sex" Type="String" />
                                <ext:ModelField Name="Brithday" Type="Date" />
                                <ext:ModelField Name="HomePhone" Type="String" />
                                <ext:ModelField Name="CellPhone" Type="String" />
                                <ext:ModelField Name="Address" Type="String" />
                                <ext:ModelField Name="Email" Type="String" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                    <ext:Column runat="server" Text="Mã nhân viên" Width="100" DataIndex="Bank_Code"></ext:Column>
                    <ext:Column runat="server" Text="Họ" Width="150" DataIndex="LastName"></ext:Column>
                    <ext:Column runat="server" Text="Tên" Width="90" DataIndex="FistName"></ext:Column>
                    <ext:Column runat="server" Text="Tên đầy đủ" Width="150" DataIndex="FullName"></ext:Column>
                    <ext:Column runat="server" Text="Giới tính" Width="90" DataIndex="Sex"></ext:Column>
                    <ext:DateColumn runat="server" Text="Ngày sinh" Width="100" DataIndex="Brithday" Format="dd/MM/yyyy"></ext:DateColumn>
                    <ext:Column runat="server" Text="Điện thoại" Width="100" DataIndex="HomePhone"></ext:Column>
                    <ext:Column runat="server" Text="Di Động" Width="100" DataIndex="CellPhone"></ext:Column>
                    <ext:Column runat="server" Text="Email" Width="100" DataIndex="Email"></ext:Column>
                    <ext:Column runat="server" Text="Địa chỉ" Width="100" DataIndex="Address" Flex="1"></ext:Column>
                </Columns>
            </ColumnModel>
            <DirectEvents>
                <ItemDblClick OnEvent="EmployeeDblClick">
                    <ExtraParams>
                        <ext:Parameter Name="Employee_Id" Value="record.data.Employee_Id" Mode="Raw" />
                    </ExtraParams>
                    <EventMask ShowMask="true" Msg="Đang tải..." />
                </ItemDblClick>
            </DirectEvents>
            <SelectionModel>
                <ext:CheckboxSelectionModel ID="CheckboxSelectionModelEmployee" runat="server" Mode="Multi">
                    <Listeners>
                       <SelectionChange Handler="
                            if (selected.length == 0) {
                                #{btnEdit}.disable();
                                #{btnDel}.disable();
                                #{btnExport}.disable();
                            } else {
                                #{btnEdit}.enable();
                                #{btnDel}.enable();
                                #{btnExport}.enable();
                            }" />
                   </Listeners>
                </ext:CheckboxSelectionModel>
            </SelectionModel>
            <DockedItems>
                <ext:Toolbar ID="ToolbarTopMain" runat="server" Dock="Top">
                    <Items>
                        <ext:Button ID="btnAddNew" runat="server" Text="Thêm mới" Icon="ApplicationAdd">
                            <DirectEvents>
                                <Click OnEvent="btnAddNew_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnEdit" runat="server" Text="Sửa" Icon="ApplicationEdit">
                            <DirectEvents>
                                <Click OnEvent="btnEdit_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnDel" runat="server" Text="Xoá" Icon="ApplicationDelete">
                            <DirectEvents>
                                <Click OnEvent="btnDel_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                    <ExtraParams>
                                        <ext:Parameter Name="name" Value="btnDel"></ext:Parameter>
                                    </ExtraParams>
                                    <Confirmation ConfirmRequest="true"
                                        Title="Thông Báo" Message="Bạn có muốn xoá mẫu tin này không ?">
                                    </Confirmation>
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnExport" runat="server" Text="Xuất tập tin" Icon="Printer">
                            <Menu>
                                <ext:Menu ID="MenuMain" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItemExportXML" runat="server" Text="XML" Icon="PageCode">
                                            <Listeners>
                                                <Click Handler="submitValue(#{grEmployee}, #{FormatTypeEmployee}, 'xml');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                    </Items>
                                </ext:Menu>
                            </Menu>
                        </ext:Button>

                    </Items>
                </ext:Toolbar>
                <ext:Toolbar ID="ToolbarPagging" runat="server" Dock="Bottom" AnchorHorizontal="100%">
                    <Items>
                        <ext:TriggerField ID="txtSearch" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                            <Triggers>
                                <ext:FieldTrigger Icon="Search" />
                            </Triggers>
                            <DirectEvents>
                                <TriggerClick OnEvent="Search_Event"></TriggerClick>
                                <KeyUp OnEvent="Search_Event"></KeyUp>
                                <KeyPress OnEvent="Search_Event"></KeyPress>
                            </DirectEvents>
                        </ext:TriggerField>
                        <ext:PagingToolbar ID="PagingToolbarEmployee" runat="server" StoreID="StoreEmployee" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                    </Items>
                </ext:Toolbar>
            </DockedItems>
        </ext:GridPanel>
    </Content>
</ext:Panel>
<ext:Panel runat="server">
    <Content>
        <%-----------WindowsEmployee-----------------%>
        <ext:Window ID="WindowsEmployee" runat="server"
            Title="Cập nhật nhân viên"
            DefaultAnchor="100%"
            Width="832px"
            Height="649px"
            Hidden="True"
            AutoScroll="False"
            Maximizable="True"
            Maximized="True"
            Minimizable="True"
            AutoDataBind="True"
            Region="Center"
            Resizable="False"
            Modal="true"
            HideMode="Offsets"
            Constrain="true"
            Border="False"
            Padding="5">
            <Items>
                <ext:Toolbar ID="ToolbarEmployee" runat="server">
                    <Items>
                        <ext:Button runat="server" Text="Lưu lại" Icon="Disk" ID="btnSavePopUp">
                            <DirectEvents>
                                <Click OnEvent="btnSavePopUp_Click" Before="return #{FormPanelEmployee}.isValid();">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button runat="server" Text="Huỷ bỏ" Icon="Decline" ID="btnCancelPopUp">
                            <DirectEvents>
                                <Click OnEvent="btnCancelPopUp_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
                <ext:FormPanel ID="FormPanelEmployee" runat="server"
                    BodyPadding="10"
                    Frame="true"
                    DefaultAnchor="100%">
                    <Items>
                        <ext:TextField ID="hdIDEmployee" Hidden="True" runat="server" FieldLabel="ID Employee:"  Width="250" Margins="0 20 0 0"></ext:TextField>
                        <ext:TextField ID="hdIDBank" Hidden="True" runat="server" FieldLabel="ID Bank:" Width="250"  Margins="0 20 0 0"></ext:TextField>
                        <ext:TextField ID="hdIDJobTitle" Hidden="True" runat="server" FieldLabel="ID Job Title:" Width="250" Margins="0 20 0 0" />
                        <ext:TextField ID="hdIDEthnic_Id" Hidden="True" runat="server" FieldLabel="ID Ethnic_Id:"  Width="250" Margins="0 20 0 0" />
                        <ext:TextField ID="hdIDDistricts_Id" Hidden="True" runat="server" FieldLabel="ID Districts_Id:"  Width="250" Margins="0 20 0 0" />
                        <ext:TextField ID="hdIDDepartment_Id" Hidden="True" runat="server" FieldLabel="ID Department_Id:" Width="250" Margins="0 20 0 0" />
                        <ext:TextField ID="hdIDPart_Id" Hidden="True" runat="server" FieldLabel="ID DPart_Id:" Width="250" Margins="0 20 0 0" />
                        <ext:FieldContainer 
                             runat="server" 
                             Layout="HBoxLayout">
                             <Items>
                                  <ext:FieldSet
                                        runat="server"
                                        MarginSpec="0 8 0 0"
                                        Padding="0"
                                        Border="False"
                                        Height="124px"
                                        ButtonAlign="Right">
                                        <Items>
                                            <ext:FieldContainer
                                                runat="server"
                                                AnchorHorizontal="100%"
                                                Layout="HBoxLayout">
                                                <Items>
                                                    <ext:TextField ID="txtEmpCode" runat="server" AllowBlank="False" FieldLabel="Mã nhân viên :"  Width="650" Margins="0 8 0 0"></ext:TextField>
                                                    <ext:Button runat="server" Text="" Icon="ArrowRefreshSmall" ID="linkGetCode" ToolTip="Tải lại mã nhân viên" Margins="0 8 0 0">
                                                        <DirectEvents>
                                                            <Click OnEvent="linkGetCode_Click">
                                                                <EventMask ShowMask="true" Msg="Đang tải..." />
                                                            </Click>
                                                        </DirectEvents>
                                                    </ext:Button>
                                                </Items>
                                            </ext:FieldContainer>
                                            <ext:TextField ID="txtLastName" runat="server" AllowBlank="False" FieldLabel="Họ nhân viên:"  Width="650" Margins="0 20 0 0" />
                                            <ext:TextField ID="txtFistName" runat="server" AllowBlank="False" FieldLabel="Tên nhân viên:"  Width="650" Margins="0 20 0 0" />
                                            <ext:TextField ID="txtFullName" runat="server" ReadOnly="True" FieldCls="readonly" FieldLabel="Tên đầy đủ:" Width="650" />
                                        </Items>
                                  </ext:FieldSet>
                                  <ext:FieldSet
                                        runat="server"
                                        MarginSpec="0 8 0 0"
                                        Padding="0"
                                        Border="False"
                                        Height="124px"
                                        ButtonAlign="Right">
                                        <Items>
                                            <ext:Image runat="server" ID="ImgEmployee" Width="80" Height="80"></ext:Image>
                                            <ext:Button runat="server" ID="btnChooseImages" Icon="ImageAdd" Text="Thêm ảnh"> 
                                                <Listeners>
                                                    <Click Handler="#{WindowFileUpload}.show();"></Click>
                                                </Listeners>
                                            </ext:Button>
                                        </Items>
                                  </ext:FieldSet>
                             </Items>
                         </ext:FieldContainer>
                        <ext:TextField ID="txtPathImg" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Hình ảnh:" Width="650" Margins="0 20 0 0" />
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:DateField ID="txtBrithday" AllowBlank="False" runat="server" FieldLabel="Ngày sinh:"  Width="250" Margins="0 20 0 0"/>
                                <ext:RadioGroup ID="RadioGroupEmployee_Gender" Width="200" runat="server" FieldLabel="Giới tính" ColumnsNumber="2" AutomaticGrouping="false">
                                    <Items>
                                        <ext:Radio ID="chkEmployee_Gender" runat="server" Name="ratingemp" InputValue="Nữ" BoxLabel="Nữ" />
                                        <ext:Radio ID="chkEmployee_Gender_Male" runat="server" Name="ratingemp" InputValue="Nam" BoxLabel="Nam" Checked="True" />
                                    </Items>
                                </ext:RadioGroup>
                            </Items>
                         </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtAccountNumber" runat="server" FieldLabel="Số tài khoản:"  Width="250" Margins="0 20 0 0"/>
                                <ext:TextField ID="txtBankName" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Ngân hàng:"  Width="250" Margins="0 8 0 0"/>
                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkBank" ToolTip="Click vào để chọn ngân hàng" Margins="0 20 0 0">
                                    <DirectEvents>
                                        <Click OnEvent="linkBank_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                         </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtEmail" runat="server" FieldLabel="Email"  Width="250"  Margins="0 20 0 0" />
                                <ext:TextField ID="txtCMND" AllowBlank="False" runat="server" FieldLabel="CMND"  Width="250"  Margins="0 8 0 0" />
                                <ext:TextField ID="txtPlaceCMND" runat="server" FieldLabel="Nơi cấp:"  Width="250"  Margins="0 8 0 0" />
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtEthnic" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Dân tộc:"  Width="230" Margins="0 5 0 0"/>
                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkEthnic" ToolTip="Click vào để chọn dân tộc" Margins="0 14 0 0">
                                    <DirectEvents>
                                        <Click OnEvent="linkEthnic_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:TextField ID="txtReligion" runat="server" FieldLabel="Tôn giáo:"  Width="250"  Margins="0 8 0 0" />
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtNational" AllowBlank="False" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Quốc gia:"  Width="250" Margins="0 20 0 0"/>
                                <ext:TextField ID="txtDomain" AllowBlank="False" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Vùng/miền:"  Width="250"  Margins="0 8 0 0" />
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtProvince" AllowBlank="False" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Tỉnh/thành:"  Width="250"  Margins="0 20 0 0" />
                                <ext:TextField ID="txtDistricts" AllowBlank="False" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Quận/huyện:"  Width="230"  Margins="0 5 0 0" />
                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkDistricts" ToolTip="Click vào để chọn quận/huyện" Margins="0 8 0 0">
                                    <DirectEvents>
                                        <Click OnEvent="linkDistricts_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtDepartment" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Phòng ban:"  Width="230" Margins="0 5 0 0"/>
                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkDepartment" ToolTip="Click vào để chọn phòng ban" Margins="0 14 0 0">
                                    <DirectEvents>
                                        <Click OnEvent="linkDepartment_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                 <ext:TextField ID="txtPart" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Bộ phận:"  Width="230" Margins="0 5 0 0"/>
                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkPart" ToolTip="Click vào để chọn bộ phận" Margins="0 8 0 0">
                                    <DirectEvents>
                                        <Click OnEvent="linkPart_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:TextField ID="txtJobtitle" ReadOnly="True" FieldCls="readonly" runat="server" FieldLabel="Chức vụ:"  Width="230" Margins="0 5 0 0"/>
                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkJobTitle" ToolTip="Click vào để chọn chức vụ">
                                    <DirectEvents>
                                        <Click OnEvent="linkJobTitle_Click">
                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtHomePhone" runat="server" AllowBlank="True" FieldLabel="Điện thoại:" Width="250" Margins="0 20 0 0">
                                    <%--<Plugins>
                                        <ext:InputMask ID="InputMaskHomePhone" Disabled="false" runat="server" Mask="(99999) 999-999" />
                                    </Plugins>--%>
                                </ext:TextField>
                                <ext:SelectBox
                                    ID="SelectBoxPhoneType"
                                    runat="server"
                                    Cls="x-select-box"
                                    AllowBlank="True"
                                    FieldLabel="Loại điện thoại:"
                                    Margins="0 8 0 0"
                                    EmptyText="Chọn loại điện thoại">
                                    <Items>
                                        <ext:ListItem Value="0" Text="10 số"/>
                                        <ext:ListItem Value="1" Text="11 số"/>
                                    </Items>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxPhoneType_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                                <ext:TextField ID="txtCellPhone" runat="server" AllowBlank="True" Hidden="True" FieldLabel="Di động:" Width="250">
                                    <Plugins>
                                        <ext:InputMask ID="InputMaskCellPhone" runat="server" Mask="(9999) 999-999" />
                                    </Plugins>
                                </ext:TextField>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:DateField ID="txtDateCreate" EmptyText="Vui lòng chọn ngày" runat="server" FieldLabel="Ngày vào làm:"  Width="250" Margins="0 20 0 0"></ext:DateField>
                                <ext:Checkbox runat="server" ID="chkObjectTimekeeping" FieldLabel="Đối tượng không chấm công" Margins="0 20 0 0" LabelWidth="180"></ext:Checkbox>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtEducationalLevel" runat="server" FieldLabel="Trình độ VH:"  Width="250" Margins="0 20 0 0"/>
                                <ext:TextField ID="txtLanguages" runat="server" FieldLabel="Ngoại ngữ:"  Width="250" Margins="0 50 0 0"/>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtSpecialize" runat="server" FieldLabel="Chuyên môn:"  Width="250" Margins="0 20 0 0"/>
                                <ext:TextField ID="txtInfomationLevel" runat="server" FieldLabel="Tin học:"  Width="250" Margins="0 20 0 0"/>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:TextField ID="txtBHXH" runat="server" FieldLabel="Số xổ BH:"  Width="250" Margins="0 20 0 0"/>
                                <ext:DateField ID="txtDateCreateBHXH" EmptyText="Vui lòng chọn ngày" runat="server" FieldLabel="Ngày cấp sổ:"  Width="250" Margins="0 20 0 0"/>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:NumberField ID="txtNumberOfVacationDays" runat="server" FieldLabel="Số ngày nghỉ phép năm:"  Width="150" Text="0" Margins="0 20 0 0" EnableKeyEvents="True" />
                            </Items>
                        </ext:FieldContainer>
                        <ext:TextArea ID="txtAddress" runat="server" AllowBlank="False" FieldLabel="Địa chỉ:" AnchorHorizontal="100%" Height="50"  FieldStyle="text-align:left;" />
                    </Items>
                </ext:FormPanel>
            </Items>
        </ext:Window>
        <%--------------Bank-----------------%>
        <ext:Window ID="WindowBank" runat="server"
            Title="Thông tin ngân hàng"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grBankEmpoyee"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <ext:Store
                            ID="StoreBankBankEmpoyee"
                            runat="server"
                            OnReadData="StoreBankBankEmpoyee_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Bank_Id">
                                    <Fields>
                                        <ext:ModelField Name="Bank_Alias" Type="String" />
                                        <ext:ModelField Name="Bank_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn ID="RowNumbererColumnBankBankEmpoyee" runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã ngân hàng" Width="100" DataIndex="Bank_Alias"></ext:Column>
                            <ext:Column runat="server" Text="Tên ngân hàng" Width="150" DataIndex="Bank_Name"  Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellBank_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchBank" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="SearchBank_Event"></TriggerClick>
                                        <KeyUp OnEvent="SearchBank_Event"></KeyUp>
                                        <KeyPress OnEvent="SearchBank_Event"></KeyPress>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreBankBankEmpoyee" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Department-----------------%>
        <ext:Window ID="WindowEmployeeDepartment" runat="server"
            Title="Thông tin phòng ban"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grEmployeeDepartment"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreEmployeeDepartment-----------------%>
                        <ext:Store
                            ID="StoreEmployeeDepartment"
                            runat="server"
                            OnReadData="StoreEmployeeDepartment_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Department_Id">
                                    <Fields>
                                        <ext:ModelField Name="Department_Alias" Type="String" />
                                        <ext:ModelField Name="Department_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã phòng ban" Width="100" DataIndex="Department_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên phòng ban" Width="150" DataIndex="Department_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellEmployeeDepartment_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchEmployeeDepartment" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="EmployeeDepartment_Event"></TriggerClick>
                                        <KeyPress OnEvent="EmployeeDepartment_Event"></KeyPress>
                                        <KeyUp OnEvent="EmployeeDepartment_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreEmployeeDepartment" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Part-----------------%>
        <ext:Window ID="WindowsEmployeePart" runat="server"
            Title="Thông tin bộ phận"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grEmployeePart"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreEmployeeDepartment-----------------%>
                        <ext:Store
                            ID="StoreEmployeePart"
                            runat="server"
                            OnReadData="StoreEmployeePart_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Part_Id">
                                    <Fields>
                                        <ext:ModelField Name="Part_Alias" Type="String" />
                                        <ext:ModelField Name="Part_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel  runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã bộ phận" Width="100" DataIndex="Part_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên bộ phận" Width="150" DataIndex="Part_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellEmployeePart_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar ID="Toolbar1" runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchEmployeePart" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="EmployeePart_Event"></TriggerClick>
                                        <KeyPress OnEvent="EmployeePart_Event"></KeyPress>
                                        <KeyUp OnEvent="EmployeePart_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreEmployeePart" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Job-----------------%>
        <ext:Window ID="WindowJob" runat="server"
            Title="Thông tin chức vụ"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grJobEmployee"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreOrderJob-----------------%>
                        <ext:Store
                            ID="StoreJobEmployee"
                            runat="server"
                            OnReadData="StoreJobEmployee_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Job_ID">
                                    <Fields>
                                        <ext:ModelField Name="Job_Alias" Type="String" />
                                        <ext:ModelField Name="Job_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn ID="RowNumbererColumnJobEmployee" runat="server" Width="30" Align="Center" />
                            <ext:Column ID="Column12" runat="server" Text="Mã chức vụ" Width="100" DataIndex="Job_Alias" Align="Center"></ext:Column>
                            <ext:Column ID="Column13" runat="server" Text="Tên chức vụ" Width="150" DataIndex="Job_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellJobEmployee_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchJobTitle" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="SearchJob_Event"></TriggerClick>
                                        <KeyPress OnEvent="SearchJob_Event"></KeyPress>
                                        <KeyUp OnEvent="SearchJob_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreJobEmployee" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Ethnic-----------------%>
        <ext:Window ID="WindowEmployeeEthnic" runat="server"
            Title="Thông tin dân tộc"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grEmployeeEthnic"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreEmployeeEthnic-----------------%>
                        <ext:Store
                            ID="StoreEmployeeEthnic"
                            runat="server"
                            OnReadData="StoreEmployeeEthnic_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Ethnic_ID">
                                    <Fields>
                                        <ext:ModelField Name="Ethnic_Alias" Type="String" />
                                        <ext:ModelField Name="Ethnic_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã dân tộc" Width="100" DataIndex="Ethnic_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên tên dân tộc" Width="150" DataIndex="Ethnic_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellEmployeeEthnic_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchEmployeeEthnic" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="EmployeeEthnic_Event"></TriggerClick>
                                        <KeyPress OnEvent="EmployeeEthnic_Event"></KeyPress>
                                        <KeyUp OnEvent="EmployeeEthnic_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreEmployeeEthnic" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Districts-----------------%>
        <ext:Window ID="WindowEmployeeDistricts" runat="server"
            Title="Thông tin quận huyện"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grEmployeeDistricts"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreEmployeeDistricts-----------------%>
                        <ext:Store
                            ID="StoreEmployeeDistricts"
                            runat="server"
                            OnReadData="StoreEmployeeDistricts_RefreshData"
                            PageSize="13">
                            <Model>
                                <ext:Model runat="server" IDProperty="Districts_Id" GroupField="Province_Name">
                                    <Fields>
                                        <ext:ModelField Name="Districts_Alias" Type="String" />
                                        <ext:ModelField Name="Districts_Name" Type="String" />
                                        <ext:ModelField Name="Province_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                            <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã quận huyện" Width="100" DataIndex="Districts_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên quận huyện" Width="150" DataIndex="Districts_Name"></ext:Column>
                            <ext:Column runat="server" Text="Tên tỉnh thành" Width="100" DataIndex="Province_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <Features>
                    <ext:Grouping
                        runat="server" 
                        HideGroupedHeader="true"
                        GroupByText="Xem theo phân nhóm"
                        ShowGroupsText="Phân nhóm"
                        GroupHeaderTplString="{name} ({rows.length} danh mục con {[values.rows.length > 1 ? '' : '']})"
                        StartCollapsed="True" />
                    </Features>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellEmployeeDistricts_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar  runat="server" Dock="Top" AnchorHorizontal="100%">
                            <Items>
                                <ext:SelectBox
                                    ID="SelectBoxEmployeeNational"
                                    runat="server"
                                    Cls="x-select-box"
                                    DisplayField="National_Name"
                                    ValueField="National_Id"
                                    MarginSpec="0 8 0 0"
                                    EmptyText="Chọn quốc gia">
                                    <Store>
                                        <ext:Store ID="StoreEmployeeNational" runat="server">
                                            <Model>
                                                <ext:Model ID="Model1" runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="National_Name" />
                                                        <ext:ModelField Name="National_Id" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxEmployeeNational_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                                <ext:SelectBox
                                    ID="SelectBoxEmployeeDomain"
                                    runat="server"
                                    Cls="x-select-box"
                                    DisplayField="Domain_Name"
                                    ValueField="Domain_Id"
                                    MarginSpec="0 8 0 0"
                                    EmptyText="Chọn vùng/miền">
                                    <Store>
                                        <ext:Store ID="StoreEmployeeDomain" runat="server">
                                            <Model>
                                                <ext:Model ID="Model2" runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="Domain_Name" />
                                                        <ext:ModelField Name="Domain_Id" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxEmployeeDomain_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                                <ext:SelectBox
                                    ID="SelectBoxProvincesEmployee"
                                    runat="server"
                                    Cls="x-select-box"
                                    DisplayField="Province_Name"
                                    ValueField="Province_Id"
                                    MarginSpec="0 8 0 0"
                                    EmptyText="Chọn tỉnh/thành">
                                    <Store>
                                        <ext:Store ID="StoreProvincesEmployee" runat="server">
                                            <Model>
                                                <ext:Model ID="Model3" runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="Province_Name" />
                                                        <ext:ModelField Name="Province_Id" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxProvincesEmployee_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                            </Items>
                        </ext:Toolbar>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchEmployeeDistricts" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="EmployeeDistricts_Event"></TriggerClick>
                                        <KeyPress OnEvent="EmployeeDistricts_Event"></KeyPress>
                                        <KeyUp OnEvent="EmployeeDistricts_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreEmployeeDistricts" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------FileUpload-----------------%>
        <ext:Window 
            ID="WindowFileUpload" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="DiskUpload" 
            Title="Tải tập tin"
            Draggable="false"
            Hidden="True"
            Width="350"
            Modal="True"
            Border="false"
            BodyPadding="5"
            HideMode="Offsets"
            Layout="FormLayout">
            <Items>
                <ext:FormPanel 
                    ID="BasicForm" 
                    runat="server"
                    Frame="True"
                    MarginSpec="0 8 0 0"
                    AutoHeight="true">
                    <Items>
                        <ext:FileUploadField 
                            ID="FileUploadPanel" 
                            runat="server" 
                            EmptyText="Chọn tập tin"
                            MarginSpec="0 8 0 0"
                            ButtonText=""
                            Width="300"
                            Icon="Attach">
                        </ext:FileUploadField>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button ID="btnUpload" runat="server" Text="Tải lên" Icon="DiskUpload">
                    <DirectEvents>
                        <Click 
                            OnEvent="btnUpload_Click"
                            Before="if (!#{BasicForm}.getForm().isValid()) { return false; } 
                                Ext.Msg.wait('Đang tải tập tin...', 'Đang tải');"
                                
                            Failure="Ext.Msg.show({ 
                                title   : 'Lỗi', 
                                msg     : 'Có lỗi xảy ra trong quá trình tải lên.Hoặc dung lượng tập tin quá lớn', 
                                minWidth: 200, 
                                modal   : true, 
                                icon    : Ext.Msg.ERROR, 
                                buttons : Ext.Msg.OK 
                            });">
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnCancel" runat="server" Text="Bỏ qua" Icon="Decline">
                    <DirectEvents>
                        <Click OnEvent="btnCancel_Click">
                            <EventMask ShowMask="true" Msg="Đang tải..." />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </Content>
</ext:Panel>